<template>
  <div class="technicTol">
    <div class="tools">
      <div class="main">
        <div class="title">{{ item.title }}</div>
        <div class="other">
          <div class="date">{{ item.created_at | dateformat }}</div>
          <div class="view">
            <van-icon name="eye-o" /><span>{{ item.read }}</span>
          </div>
          <div class="star">
            <van-icon name="good-job-o" /><span>{{ item.star }}</span>
          </div>
        </div>
      </div>

      <img class="myimg" :src="src" alt="" />
    </div>
  </div>
</template>
<script>
export default {
  props: ['item'],
  data () {
    return {
      src: 'http://47.106.228.28:1337' + this.item.cover
    }
  }
}
</script>
<style lang="less" scoped>
.technicTol {
  margin: 20px 15px 0 15px;

  .tools {
    display: flex;
    .main {
      flex: 1;
    }
    .title {
      font-size: 16px;
    }
  }
  .myimg {
    width: 97px;
    height: 64px;
    margin-left: 15px;
  }
  .other {
    display: flex;
    color: #ccc;
    margin-top: 10px;
    .date {
      flex: 1;
    }
    .view,
    .star {
      margin: 0 15px;
    }
    span {
      margin-left: 10px;
    }
  }
}
</style>
